﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DreamBuilder.Common;
using ePlanet.ArchiveMange.DataAccess;
using ePlanet.ArchiveMange.Models;
using System.Data;

namespace ePlanet.ArchiveMange.Services
{
    public interface IBuildProjectArchiveService : IBusiness, IArchiveBase
    {
        /// <summary>
        /// 获取全部的基建类卷信息
        /// </summary>
        /// <returns></returns>
        ArchiveMangeModal.BULIDPROJECT_ARCHIVEDataTable GetAllDocumenArchivetData();

        /// <summary>
        /// 根据子类型获取数据
        /// </summary>
        /// <returns></returns>
        ArchiveMangeModal.BULIDPROJECT_ARCHIVEDataTable GetDocumenArchivetDataByType(string archiveType);

        /// <summary>
        /// 根据主键查询数据
        /// </summary>
        /// <param name="typeId"></param>
        /// <returns></returns>
        ArchiveMangeModal.BULIDPROJECT_ARCHIVEDataTable GetAllDocumenArchivetDataById(string DATAID);

        /// <summary>
        /// 备注：根据DATAID列表取对应档案的详细信息
        /// 时间：2013年1月9日 23:47:41
        /// </summary>
        /// <param name="idList"></param>
        /// <returns></returns>
        DataTable GetBuildProjectArchiveDataByIds(IEnumerable<string> idList);

        DataTable GetHandoverDataByIds(IEnumerable<string> idList);

        DataTable GetArchiveDateSpanByIds(IEnumerable<string> idList);

        /// <summary>
        /// 保存卷内件
        /// </summary>
        /// <param name="dt_PageFile"></param>
        /// <param name="DATAID"></param>
        /// <returns></returns>
        bool SavePageFile(IList<string> fileIdList, string DATAID);

        /// <summary>
        /// 根据档案ID获取卷内件
        /// </summary>
        /// <param name="DATAID"></param>
        /// <returns></returns>
        DataTable GetPageFileByDATAID(string DATAID);

        /// <summary>
        /// 获取某种类型档案的活动件
        /// </summary>
        /// <param name="archiveType"></param>
        /// <returns></returns>
        DataTable GetPageFileByArchiveType(string archiveType);
    }
}
